package com.open.common.model;

import java.io.Serializable;
import java.util.List;

/**
 * 瀑布流分页
 * @author dashu03
 * @date 2025年08月04日 18:12
 */
public class WaterfallPage <T> implements Serializable {
    private static final long serialVersionUID = -3762500564578648376L;

    /**
     * 内容开始索引
     */
    private int index = 0;

    /**
     * 内容大小
     */
    private int size = 15;

    /**
     * 总数
     */
    private int total;

    /**
     * 内容列表
     **/
    private List<T> items;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public WaterfallPage(int index, int size) {
        super();
        this.index = index;
        this.size = size;
    }

    public WaterfallPage() {
        super();
    }

    @Override
    public String toString() {
        return "RollingPage{" +
                "index=" + index +
                ", size=" + size +
                ", total=" + total +
                ", items=" + items +
                '}';
    }
}
